﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Inheritance_abstract_polymorphism
{
    class Program
    {
        static void Main(string[] args)
        {
            #region SimpleQuiz

            //SimpleQuiz simpleQuiz = new SimpleQuiz(
            //    "Thu do cua nuoc Viet nam o dau?",
            //    SimpleQuiz.QuizType.DiaLy,
            //    SimpleQuiz.QuizDifficulty.Normal,
            //    "ha noi"
            //    );
            //QuizBase.ShowAvailableType();
            //QuizBase.ShowAvailableDifficulty();
            //simpleQuiz.ShowQuizDifficultyLevel();
            //simpleQuiz.ShowQuizType();
            //simpleQuiz.ShowQuestion();
            //simpleQuiz.ReadAnswer();
            //if (simpleQuiz.IsCorrect())
            //{
            //    Console.WriteLine("Ban da tra loi dung");
            //}
            //else
            //{
            //    Console.WriteLine("Ban da tra loi sai");
            //}

            //Console.ReadLine();
#endregion
            #region TrueFalseQuiz
            TrueFalseQuiz truefalseQuiz = new TrueFalseQuiz(
                "Ten thu do cua Viet Nam la Ha Noi. Dung hay sai?",
                TrueFalseQuiz.QuizType.DiaLy,
                TrueFalseQuiz.QuizDifficulty.Normal,
                true);
            truefalseQuiz.ShowQuizType();
            truefalseQuiz.ShowQuizDifficultyLevel();
            truefalseQuiz.ShowQuestion();
            truefalseQuiz.ReadAnswer();
            if (truefalseQuiz.IsCorrect())
            {
                Console.WriteLine("Ban da tra loi dung");
            }
            else
            {
                Console.WriteLine("Ban da tra loi sai");
            }
            Console.ReadLine();
#endregion
        }
    }
}
